/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout/index.vue'

const voucherRouter = [
    {
        path: '/voucher',
        component: Layout,
        name: 'voucher',
        meta: { title: '充值中心', icon: 'Collection', keepAlive: true },
        children: [
            {
                path: 'detail',
                component: () => import('@/views/voucher/index.vue'),
                name: 'detail',
                meta: { title: '充值', keepAlive: true },
            },
            {
                path: 'topup',
                component: () => import('@/views/voucher/topUpdetail/index.vue'),
                name: 'topup',
                meta: { title: '充值明细', keepAlive: true },
            },
        ],
    },
]

export default voucherRouter
